using System;
using Holoville.HOTween;
using UnityEngine;

public class TestHandler : MonoBehaviour
{
	private void Update()
	{
	}

	private void OnClick()
	{
		BMSoundHelper.Play("se_btnclick", false, 1f);
	}

	private void StartAnimateLogo()
	{
		this.StopAnimateLogo();
		this.block.transform.localScale = new Vector3(0f, 0f, 1f);
		this.puzzleGames.transform.localScale = new Vector3(0f, 1f, 1f);
		this.btn.transform.localScale = new Vector3(0f, 0f, 1f);
		for (int i = 0; i < this.icons.Length; i++)
		{
			this.icons[i].transform.localScale = new Vector3(0f, 0f, 1f);
		}
		Sequence sequence = new Sequence(new SequenceParms().Id("TestHandler"));
		sequence.Insert(0.3f, HOTween.To(this.block.transform, 0.5f, new TweenParms().Prop("localScale", new Vector3(1f, 1f, 1f)).Ease(EaseType.EaseOutBack)));
		sequence.Insert(0.8f, HOTween.To(this.puzzleGames.transform, 1.5f, new TweenParms().Prop("localScale", new Vector3(1f, 1f, 1f)).Ease(EaseType.EaseOutElastic)));
		for (int j = 0; j < this.icons.Length; j++)
		{
			sequence.Insert(0.5f + (float)j * 0.1f, HOTween.To(this.icons[j].transform, 0.25f, new TweenParms().Prop("localScale", new Vector3(1f, 1f, 1f))));
		}
		sequence.Insert(1.5f, HOTween.To(this.btn.transform, 0.5f, new TweenParms().Prop("localScale", new Vector3(1f, 1f, 1f)).Ease(EaseType.EaseOutBack)));
		sequence.Play();
	}

	private void StopAnimateLogo()
	{
		HOTween.Complete("TestHandler");
		this.block.transform.localScale = new Vector3(0f, 0f, 1f);
		this.puzzleGames.transform.localScale = new Vector3(0f, 1f, 1f);
		this.btn.transform.localScale = new Vector3(0f, 0f, 1f);
		for (int i = 0; i < this.icons.Length; i++)
		{
			this.icons[i].transform.localScale = new Vector3(0f, 0f, 1f);
		}
	}

	public GameObject block;

	public GameObject puzzleGames;

	public GameObject[] icons;

	public GameObject btn;
}
